# coding:utf-8
'''
a = 100
b = 200
c = a + b
print (c)
total = c + \
    a
print  (total)

days = ["Monday","Tuesday","Wednesday","Thursday",
        "Friday","Saturday","Sunday"]
print days

'''
'''
if c > 300:
    print ("偏大")
elif c < 300:
    print ("偏小")
else:
    print("恰好")
'''
'''
str = 'Hello World!'
print str
print str[0]
print str[0:2]
print str[2:]
print str * 2
print str + "Python"

'''
'''列表
list =  ["Monday","Tuesday","Wednesday","Thursday", "Friday","Saturday","Sunday"]
#print list[0:5]
#print list * 2
list2 = ["1","2"]
print list + list2
'''
'''元组
tuple =  ("Monday","Tuesday","Wednesday","Thursday", "Friday","Saturday","Sunday")
print tuple
print tuple[0]
print tuple[0:4]
tuple2=("1","2")
print tuple + tuple2
'''
'''元字典
dict ={}
dict['one'] = "Monday"
print dict["one"]
dict [2] = "Tuesday"
print dict[2]

dict1 = {'3':'Wednesday','four':4}
print dict1
print dict1.keys()
print dict.values()
'''

#print int(10.567)
#print 2**5

'''
flag = False
name = "zhangli"
if  (name =="zhangli"):
    flag = True
    print ("Hello leader")
else:
    print name
'''
'''
num = 1
while ( num < 5 ):
    print "num is :" , num
    num+=1
print "good bye"
'''
'''
i = 1
while (i < 10):
    i +=1
    if ( i %2 == 0):
        print i
    continue

j = 1
while (j < 10):
    j +=1
    if ( j %2 == 0):
        print j
    break
'''
'''
flag = 1
while (flag):
    print "go on"
print "goodbye" #死循环

'''
'''
for letter in ("Python"):
    print "the current letter is :",letter
    if letter == "h":
        break

for letter in ("Python"):
    print "the current letter is :",letter
    if letter == "h":
        continue
'''
'''
for num in range(1,5):
    print "num is ",num
'''
'''
fruit = ["banana","apple","pear","orange"]
for i in range(1,len(fruit)):
     print "当前水果是",fruit[i]
print 'goodbye'
'''
'''
for letter in "Python":
    if letter == "h":
        pass
        print"this is pass module"
    print letter
'''
'''
#from math import ceil
a = -10
print abs(a)
import math
b = 3.14152
print math.ceil(b)
f = 12.345
print math.modf(f)
'''
'''
import random
seq =["1","2","3","4","5"]
#print random.choice(seq)
random.shuffle(seq)
print seq
print random.uniform (4,9)

import math
print math.e
print math.pi
#i = range(1,100)
#print random.choice(i)
#print random.randrange(10,20,4)

'''
'''
print "My name is %s and weight is %d kg!" % ('Zara', 21)
print "hello %d" %123
'''
'''
str = "hello1hello2hello3"
newstr = str.capitalize()
print newstr
newstr1 = str.center(10)
print newstr1
newstr2 = str.count("hello")
print newstr2
newstr3 = str.endswith("3",0,len(str))
print newstr3
newstr4 = str.find("hello2",0,len(str))
print newstr4
newstr5 = str.index("hello4",0,len(str))
print newstr5
'''
'''
str2 = "$#%#$$@%$#%$&#$%"
print str2.isalnum()
str3 = "welcom,xiaoming"
print str3.partition(",")
str4="nihaoma"
print str4.zfill(40)
'''
'''
# 列表
list1=["a","b","c","d","e"]
list2=["1","2","3","4","5"]
print "list1[0]:" , list1[0]
print "list2[0:3]:" , list2[0:3]
print "the old list is:", list2
del list2[2]
print "the new list is:", list2
print tuple( list1 )
# 元组
tup1 = ("x","h","l","29")
tup2 = ("1","2","3","4")
tup3 = ()
print ("tup1[0] is",tup1[0])
#del tup2
print ("max(tup2) is: "),max(tup2)
print ("tup3=tup1+tup2 is ",tup1 + tup2)
print tuple(tup2)
'''
'''
#字典
dict1 ={'name':'xhl','age':'29'}
print "the dict's length is :",len(dict1)
print "Equivalent String : %s" % str(dict1)
print "the type is: %s" % type(dict1)
#print dict1
#dict1.clear()
#print dict1
dict2 = dict1.copy()
print dict2
print "the age is:",dict1.get("age","None")
print "the sex is:",dict1.get("sex","None")
print dict1.items()
dict1.setdefault("sex","None")
print dict1.items()
'''
'''时间
import time
print time.localtime()
print time.clock()
print time.time()
print time.asctime()
'''
#添加注释










